package com.mazaiting.mybatisplus.sensitive.constants;

/***
 * 脱敏正则表达式
 * @author mazaiting
 * @datetime 2022/4/14
 */
public class RegexConstant {
    /**
     * 替换符号:  *
     */
    public static final String REPLACE_STAR = "*";
    /**
     * 替换符号: ****
     */
    public static final String REPLACE_FOUR_STAR = "****";
    /**
     * 邮箱脱敏正则
     */
    public static final String REGEX_EMAIL = "(?<=.{2}).*(?=@)";
    /**
     * 手机号脱敏正则
     */
    public static final String REGEX_PHONE = "(?<=(\\d){3})(\\d){4}(?=(\\d){4})";
}
